package com.battle.service.repository.in;

import com.battle.pojo.entity.TrainingSolo;
import com.battle.pojo.entity.TrainingSoloDetails;
import com.battle.pojo.vo.trainingSolo.GetTrainingSoloListVo;
import nirvana.core.repository.IRepository;

import java.time.LocalDate;
import java.util.Locale;
import java.util.Map;
import java.util.List;

    import com.battle.pojo.dto.trainingSolo.SelectTrainingSoloDto;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
public interface TrainingSoloRepository extends IRepository< TrainingSolo > {


    /**
    * 搜索单人训练
    * @param dto
    * @return
    */
    Page<GetTrainingSoloListVo> selectTrainingSolo(SelectTrainingSoloDto dto);

    /**
    * 获取Map
    * @param ids
    * @return
    */
    Map<Long, TrainingSolo> getMap(List<Long> ids);

    /**
     * 根据路径和时间查询单人训练
     * @param organizationIds
     * @param startDate
     * @param endDate
     * @return
     */
    List<TrainingSolo> selectSoleByPath(List<Long> organizationIds, LocalDate startDate, LocalDate endDate);

    /**
     * 查询指定用户的缺席人员
     * @param userId
     * @param startDate
     * @param endDate
     * @return
     */
    List<TrainingSolo> selectAbsentPersonUserIds(String userId,LocalDate startDate, LocalDate endDate);

}